package com.cqndt.visual.dao.entity;


import java.io.Serializable;
import java.util.Date;

public class TabUser implements Serializable {
    private Integer id;

    private String userName;

    private String realName;

    private Integer sex;

    private String phone;

    private String role;

    private Integer aduitType;

    private String password;

    private Date createTime;

    private Date updateTime;

    private Boolean isDelete;

    private Integer isAble;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName == null ? null : realName.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role == null ? null : role.trim();
    }

    public Integer getAduitType() {
        return aduitType;
    }

    public void setAduitType(Integer aduitType) {
        this.aduitType = aduitType;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getIsAble() {
        return isAble;
    }

    public void setIsAble(Integer isAble) {
        this.isAble = isAble;
    }

    /**
     * 平台
     */
    private boolean backAduit;
    /**
     * App
     */
    private boolean appAduit;


    public boolean isBackAduit() {
        return (getAduitType()&1)==1;
    }

    public boolean isAppAduit() {
        return (getAduitType()&2)==2;
    }
}